<?php

namespace Erp\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * Erp\ErpBundle\Entity\Participer_Evenement
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Erp\ErpBundle\Entity\Participer_EvenementRepository")
 */
class Participer_Evenement
{
	
	// ...
	
	/**
	 * @ORM\ManyToOne(targetEntity="Evenement", inversedBy="participer")
	 * @ORM\JoinColumn(name="id_evenement", referencedColumnName="id")
	 *
	 */
	
	protected $evenement;
	
	/**
	 * @ORM\ManyToOne(targetEntity="Erp\UserBundle\Entity\User", inversedBy="participer")
	 * @ORM\JoinColumn(name="id_personne", referencedColumnName="id")
	 *
	 */
	
	protected $user;
	
	public function __construct()
	{
		//$this->evenement = new ArrayCollection();
	}
	
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer $id_personne
     *
     * @ORM\Column(name="id_personne", type="integer")
     */
    private $id_personne;

    /**
     * @var integer $id_evenement
     *
     * @ORM\Column(name="id_evenement", type="integer")
     */
    private $id_evenement;

    /**
     * @var boolean $participation
     *
     * @ORM\Column(name="participation", type="boolean")
     */
    private $participation;
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set id_personne
     *
     * @param integer $idPersonne
     */
    public function setIdPersonne($idPersonne)
    {
        $this->id_personne = $idPersonne;
    }

    /**
     * Get id_personne
     *
     * @return integer 
     */
    public function getIdPersonne()
    {
        return $this->id_personne;
    }

    /**
     * Set id_evenement
     *
     * @param integer $id_Evenement
     */
    public function setIdEvenement($id_evenement)
    {
        $this->id_evenement = $id_evenement;
    }

    /**
     * Get id_evenement
     *
     * @return integer 
     */
    public function getIdEvenement()
    {
        return $this->id_evenement;
    }

    /**
     * Set participation
     *
     * @param $participation
     */
    public function setParticipation($participation)
    {
    	$this->participation = $participation;
    }
    
    /**
     * Get participation
     *
     * @return participation
     */
    public function getParticipation()
    {
    	return $this->participation;
    }
    
    /**
     * Set evenement
     *
     * @param Erp\ErpBundle\Entity\Evenement $evenement
     */
    public function setEvenement(\Erp\ErpBundle\Entity\Evenement $evenement)
    {
        $this->evenement = $evenement;
    }

    /**
     * Get evenement
     *
     * @return Erp\ErpBundle\Entity\Evenement 
     */
    public function getEvenement()
    {
        return $this->evenement;
    }
    
    /**
     * Set user
     *
     * @param Erp\UserBundle\Entity\User $user
     */
    public function setUser(Erp\UserBundle\Entity\User $user)
    {
    	$this->user = $user;
    }
    
    /**
     * Get user
     *
     * @return Erp\UserBundle\Entity\User
     */
    public function getUser()
    {
    	return $this->user;
    }
   
}